/*
 *MIT License
 *
 *Copyright (c) 2019 chenshuai cs4380@163.com
 *
 *Permission is hereby granted, free of charge, to any person obtaining a copy
 *of this software and associated documentation files (the "Software"), to deal
 *in the Software without restriction, including without limitation the rights
 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *copies of the Software, and to permit persons to whom the Software is
 *furnished to do so, subject to the following conditions:
 *
 *The above copyright notice and this permission notice shall be included in all
 *copies or substantial portions of the Software.
 *
 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *SOFTWARE.
 */

package com.cs.cslc.admin.pojo;

import com.cs.cslc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * SysMenu 系统基础菜单表.
 *
 * @author cs
 * @version 1.0
 * @date 2019-10-11 19:51
 * @description
 */
@Getter
@Setter
@Table(name = "sys_menu")
public class SysMenu extends BasePojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 父级菜单id
     */
    @Column(name = "parent_id")
    private String parentId;
    /**
     * 菜单类型(0:目录|1:菜单)
     */
    @Column(name = "menu_type")
    private Integer menuType;
    /**
     * 菜单编码
     */
    @Column(name = "menu_code")
    private String menuCode;
    /**
     * 菜单标题
     */
    @Column(name = "menu_title")
    private String menuTitle;
    /**
     * 菜单图标
     */
    @Column(name = "menu_icon")
    private String menuIcon;
    /**
     * 菜单路径（路径别名）
     */
    @Column(name = "menu_path")
    private String menuPath;

    /**
     * 菜单路径(菜单url地址)
     */
    @Column(name = "component")
    private String component;


    /**
     * 页面组件(页面目录地址)
     */
    @Column(name = "redirect")
    private String redirect;
    /**
     * 排序
     */
    @Column(name = "order_num")
    private Integer orderNum;
    /**
     * 菜单描述
     */
    @Column(name = "description")
    private String description;
    /**
     * 是否删除(1:删除|0:未删除)
     */
    @Column(name = "is_deleted")
    private Integer isDeleted;
}